package com.burgeon.backend.mappers;

import com.burgeon.backend.entity.User;

import java.util.ArrayList;
import java.util.List;

public interface UserMapper {

    User getUserById(String id);
    Integer synUserData(String phone,String account,String isEmp,
                        String type,String discount,String isPlus);

    Integer delUserData(String phone,String account);

    User FindUserDataByPhone(String phone,String account);

    List<User> GetWXUserData(int start, String account);

    String GetUserCountList(String account);

    List<User> FindWXUserData(int start,String account,String message);

    String FindUserCount(String account,String message);

    Integer Register(User user);

    Integer AppRegister(User user);

    Integer addUser(User user);

    User FindUser(String openid,String token);

    User FindUserByAppOpenId(String openid,String token);

    //获取绑定/注册的会员数
    String getUserCount(String account,String source);

    //会员购买数
    String getPayUserCount(String account);

    //激活会员数
    String getJHUserCount(String account);

    //筛选会员
    ArrayList<User> FindUserBys(String account,String vipType,String store,String emp,String storejh,
                               String birthday,String cStartTime,String cEndTime,int start);
    //筛选会员的总数
    String FindUserCountBys(String account,String vipType,String store,String emp,String storejh,
                            String birthday,String cStartTime,String cEndTime);

    //获取会员电话
    String findPhone(String uid, String token);
}
